/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.fd.service;

import java.util.Collection;
import java.util.List;

import com.xy.biz.fd.domain.req.GetDocumentReleaseOftenUseRequest;
import com.xy.lang.domain.Result;
import com.xy.biz.fd.domain.bo.DocumentReleaseOftenUseBO;
import com.xy.biz.fd.domain.query.DocumentReleaseOftenUseQuery;

/**
 * 
 * 
 * @author zgy
 * @date 2021-6-15
 */
public interface DocumentReleaseOftenUseService {
	
	/**
	 * 保存
	 *
	 * @param documentReleaseOftenUseBO
	 */
	Result<?> saveDocumentReleaseOftenUse(DocumentReleaseOftenUseBO documentReleaseOftenUseBO);
	
	/**
	 * 保存多个
	 *
	 * @param collection
	 */
	Result<?> saveAllDocumentReleaseOftenUse(Collection<DocumentReleaseOftenUseBO> collection);
	
	/**
	 * 更新
	 *
	 * @param documentReleaseOftenUseBO
	 */
	Result<?> updateDocumentReleaseOftenUse(DocumentReleaseOftenUseBO documentReleaseOftenUseBO);

	/**
	 * 更新访问量
	 *
	 * @param request
	 */
	Result<?> increment(GetDocumentReleaseOftenUseRequest request);
	
	/**
	 * 删除
	 *
	 * @param documentReleaseOftenUseId
	 */
	Result<?> deleteDocumentReleaseOftenUse(Long documentReleaseOftenUseId);
	
	/**
	 * 查找一个
	 *
	 * @param documentReleaseOftenUseId
	 * @return 
	 */
	DocumentReleaseOftenUseBO getDocumentReleaseOftenUse(Long documentReleaseOftenUseId);
	
	/**
	 * 查找多个
	 *
	 * @param collection 标识集合
	 */
	List<DocumentReleaseOftenUseBO> listDocumentReleaseOftenUseById(Collection<Long> collection);
	
	/**
	 * 查找多个
	 *
	 * @param query 查找条件
	 */
	List<DocumentReleaseOftenUseBO> listDocumentReleaseOftenUse(DocumentReleaseOftenUseQuery query);
	
	/**
	 * 统计个数
	 *
	 * @param query 查找条件
	 */
	int countDocumentReleaseOftenUse(DocumentReleaseOftenUseQuery query);
	
}
